const router = require('koa-router')()
const Mock = require('mockjs');

const { selectData } = Mock.mock({
  "selectData|5": [{
    title: "@ctitle(2)",
    "children|5-10": [{
      title: "@ctitle(2)"
    }]
  }]
})

router.get('/select/list', ctx => {
  ctx.body = {
    code: 200,
    message: 'ok',
    data: selectData
  }
})

module.exports = router
